package com.cicc.springboot.controller;

import com.cicc.springboot.common.dto.R;
import com.cicc.springboot.service.CurrencyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName CurrencyController
 * @Description TODO
 * @Author 转轮王
 * @Date 2024/10/9 13:54
 * @Version 1.0
 */


@RestController
public class CurrencyController {


    @Autowired
    private CurrencyService currencyService;


    /**
     * 查询全部币种
     */

    @GetMapping("/getAllCurrencyName")
    public R<String[]> getAllCurrencyName() {
        return currencyService.getAllCurrencyName();
    }
}
